<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="/commons/taglibs.jsp" %>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>角色管理</title>

<%@ include file="/commons/css_js_head.jsp" %>

<script type="text/javascript">

function doChgTab(flag){
   	var mainFrame = document.getElementById("mainFrame");
	var divUser = document.getElementById("divUser");
	var divMenu = document.getElementById("divMenu");   
	var divShortcutMenu = document.getElementById("divShortcutMenu");   
   var url = "";
   
   if(flag == "user"){
   
   	  url = "${ctx}/permission/efUserRoleAction!doList.ts?roleId=${roleId}";
   	  divMenu.className = "mainTabsOff";
   	  divUser.className = "mainTabsOn";
   	  divShortcutMenu.className = "mainTabsOff";   	  
   	     	  
   }else if(flag == "menu"){
   
   	  url = "${ctx}/permission/efRoleMenuAction!doList.ts?roleId=${roleId}";
   	  divMenu.className = "mainTabsOn";
   	  divUser.className = "mainTabsOff";
   	  divShortcutMenu.className = "mainTabsOff";   	  
   	  
   }else if(flag == "shortcutmenu"){
   	  url = "${ctx}/permission/efRoleMenuShortcutAction!doList.ts?roleId=${roleId}";
   	  divMenu.className = "mainTabsOff";
   	  divUser.className = "mainTabsOff";
   	  divShortcutMenu.className = "mainTabsOn";   	  
   	     	  
   }
   mainFrame.src = url;
}

</script>

</head>

<body>
<div class="windowSize510" style="height:450px;">
  
  <div class="windowTitle">
    <span class="window_close"><a href="javascript:void(null)" onclick="parent.tb_remove()" title="关闭" ><img src="../images/no.gif" /></a></span>
	<b>角色授权 当前角色编号是：${roleId}</b>
  </div>
  
  <div class="windowMain" style="height:350px;">
	<!-- tabs -->
	<div class="mainTabsLine">
	  <div id="divUser" class="mainTabsOn" style="margin-left:10px;"><a href="javascript:doChgTab('user')">用户</a></div>
	  <div id="divMenu" class="mainTabsOff"><a href="javascript:doChgTab('menu')">菜单</a></div>
	  <div id="divShortcutMenu" class="mainTabsOff"><a href="javascript:doChgTab('shortcutmenu')">快捷菜单</a></div>
	</div>
	<!-- end tabs -->
	
	<!--form -->
	<div class="infoTable">
		<iframe scrolling="auto" id="mainFrame" src="${ctx}/permission/efUserRoleAction!doList.ts?roleId=${roleId}" width="100%" height="100%" frameborder="0"></iframe>
	</div>
	<!--end form -->
	
  </div>
  
  <div class="windowBtn">
    <a href="javascript:void(null)" onclick="parent.tb_remove()"><span class="btn">关闭窗口</span></a>
  </div>
  
</div>

</body>
</html>
